package com.gs.draw.feign;

import com.gs.common.core.domain.AjaxResult;
import com.gs.gaosheng.domain.GsCouponUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("gaosheng-service")
public interface UserFeign {
    @GetMapping("/gaosheng/user/feign/userScore")
    public Long userScore(@RequestParam("userAccount") String userAccount);

    @PostMapping("/gaosheng/user/feign/updateUserScore")
    public AjaxResult updateUserScore(@RequestParam("userAccount") String userAccount,
            @RequestParam("userScore") Long userScore);

    @PostMapping("/gaosheng/couponuser/feign/add")
    public AjaxResult add(@RequestBody GsCouponUser gsCouponUser);
}
